package com.vpclub.service;

import com.vpclub.bean.Department;
import com.vpclub.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : leimingchao
 * @date Date : 2021年08月09日 22:40
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    public List<Department> getDepartments() {
        return departmentMapper.selectByExample(null);
    }
}
